package com.cloud.logger.zchain.zchainserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * User: wcy
 * Date: 2017/11/30
 * Time: 10:22
 */
@Data
@Document(collection="project_user_Relation")
public class ProjectUserRelation {

    @Id
    private String id;

    @JsonProperty("user_id")
    @JSONField(name = "user_id")
    @ApiModelProperty(name = "user_id", notes = "用户id", example = "xxxx")
    private String userId;

    @JsonProperty("project_id")
    @JSONField(name = "project_id")
    @ApiModelProperty(name = "project_id", notes = "项目id", example = "xxxx")
    private String projectId;
}
